Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow for integration tests, fix encoding / decoding of managed decimals #479

Merged

Conversation

danielailie
Copy link
Contributor

@danielailie danielailie commented Sep 11, 2024

  • Add GH workflow to run integration tests using mxpy localnet.
  • Add codec for ManagedDecimalSigned
  • Fix encoding / decoding of managed decimals.

andreibancioiu
andreibancioiu previously approved these changes Sep 12, 2024
push:
branches:
- main
pull_request:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

.withGasLimit(10000000)
.withChainID(network.ChainID)
.withSender(alice.address)
.withValue(0);

// addition()
// addition();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting artifact.

buffers.push(Buffer.from(this.binaryCodec.encodeNested(new U32Value(value.getScale()))));
} else {
buffers.push(Buffer.from(this.binaryCodec.encodeTopLevel(new BigUIntValue(value.valueOf()))));
buffers.push(
this.binaryCodec.encodeTopLevel(new BigUIntValue(value.valueOf().shiftedBy(value.getScale()))),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, above, and in managedDecimalSigned.ts, some temporary variables can be added (for shorter lines) e.g.:

const rawValue = new BigUIntValue(value.valueOf().shiftedBy(value.getScale()))

@popenta popenta self-requested a review September 13, 2024 08:07
popenta
popenta previously approved these changes Sep 13, 2024
@andreibancioiu andreibancioiu changed the title Add workflow Add workflow for integration tests, fix encoding / decoding of managed decimals Sep 16, 2024
@danielailie danielailie merged commit 6dbbd06 into main Sep 16, 2024
4 checks passed
@danielailie danielailie deleted the TOOL-248-add-workflow-to-run-integration-tests-with-localnet branch September 16, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants